import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import getters from './getters'
import permission from './modules/permission'
import publicModule from './modules/public'
Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        user,
        permission,
        publicModule
    },
    getters
})

export default store
